package com.innovatio.validator.handlers;

import com.innovatio.validator.exceptions.ValidatorException;
import com.innovatio.validator.Validable;
import com.innovatio.validator.ValidationErrors;

import java.lang.annotation.Annotation;

/**
 * This code is property of Innovatio Software Solutions, Inc.
 * Project PaySmart
 * User: Ramon
 * Date: Mar 4, 2009
 * Time: 10:59:38 AM
 */
public interface ValidationHandler<T extends Annotation> {
    
   public ValidationErrors.Error validate(T annotation, Validable container,String fieldName, String value) throws ValidatorException;

}
